#include "stm32f10x.h"                  // Device header
#include "OLED.h"

int main(void)
{
    OLED_Init();

    OLED_ShowString(1, 1, "F_SIZE:    KB");
    // 28.1.1 闪存容量寄存器
    OLED_ShowHexNum(1, 9, *((__IO uint16_t *)(0x1FFFF7E0)), 3);
    
    OLED_ShowString(2, 1, "UID:");
    // 28.2 产品唯一身份标识寄存器(96位)
    OLED_ShowHexNum(2, 6, *((__IO uint16_t *)(0x1FFFF7E8)), 4);
    OLED_ShowHexNum(2, 11, *((__IO uint16_t *)(0x1FFFF7E8 + 0x02)), 4);
    OLED_ShowHexNum(3, 1, *((__IO uint32_t *)(0x1FFFF7E8 + 0x04)), 8);
    OLED_ShowHexNum(4, 1, *((__IO uint32_t *)(0x1FFFF7E8 + 0x08)), 8);
    
    while(1)
    {

    }
}
